import java.util.Scanner;

public class rty {
    public static void main(String[] args) {
        int[] scose = new int[]{7, 5, 9, 3, 6};
        Scanner intput = new Scanner(System.in);

        for (int i = 0; i < 5; i++) {
            System.out.println("请输入第" + (i + 1) + "个数");
            int a = intput.nextInt();
            int index;
            for (index = 0; index < 5; index++) {
                if (a == scose[index]) {
                    System.out.println("恭喜你猜对了");
                    return;
                }
            }
            System.out.println("错了");

        }
    }
}

